package com.lely.springcloud.service;

import com.common.result.R;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zzyy
 * @create 2020/3/7 16:01
 **/
@Component
public class PaymentFallbackService implements PaymentFeignService {

    @Override
    public R getPaymentById(@PathVariable("id") Long id) {
        String str = "----PaymentFallbackService fall back-paymentInfo_OK,o(╥﹏╥)o";
        return R.error(str);
    }

    @Override
    public String paymentFeignTimeout() {
        return "----PaymentFallbackService fall back-paymentInfo_TimeOut,o(╥﹏╥)o";
    }
}
